//
//  ZHIMTimeRange.h
//  ZHIMKit
//
//  Created by Chen Zhangli on 2021/4/14.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef struct _ZHIMTimeRange {
    NSTimeInterval begin;
    NSTimeInterval end;
} ZHIMTimeRange;


NS_INLINE ZHIMTimeRange ZHIMMakeTimeRange(NSTimeInterval begin, NSTimeInterval end) {
    ZHIMTimeRange r;
    r.begin = begin;
    r.end = end;
    return r;
}


typedef struct _ZHIMDateRange {
    NSDate *begin;
    NSDate *end;
} ZHIMDateRange;


NS_INLINE ZHIMDateRange ZHIMMakeDateRange(NSDate *begin, NSDate *end) {
    ZHIMDateRange r;
    r.begin = begin;
    r.end = end;
    return r;
}

